
package jpa.entities;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="CUSTOMER")
public class Customer implements Serializable {
    private static final long serialVersionUID = 1L;
	@Id
	private Long id;		
	@Column(nullable = false)
	private String firstName;		
	@Column(nullable = false)
	private String lastName;		
	@Column(nullable = false)
	private String email;		
	private String phoneNumber;		
	private Adress adress;	

	public Customer{
	}

	public Long getId(){
		return id;
	}

	public Long setId(Long id){
		this.id = id;
	}

	public String getFirstName(){
		return firstName;
	}

	public String setFirstName(String firstname){
		this.firstName = firstName;
	}

	public String getLastName(){
		return lastName;
	}

	public String setLastName(String lastname){
		this.lastName = lastName;
	}

	public String getEmail(){
		return email;
	}

	public String setEmail(String email){
		this.email = email;
	}

	public String getPhoneNumber(){
		return phoneNumber;
	}

	public String setPhoneNumber(String phonenumber){
		this.phoneNumber = phoneNumber;
	}


